package com.go.hibernate.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
// @Table(name = "_teacher")
// @javax.persistence.SequenceGenerator(name = "SEQ_STORE", sequenceName =
// "my_sequence")
public class Teacher {
	private Integer id;
	// private String id;
	private String name;
	private String title;
	private String youWifeName;
	private Date birthDate;
	private ZhiCheng zhiCheng;

	@Id
	@GeneratedValue
	// @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
	// "SEQ_STORE")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	// @GeneratedValue(generator = "system-uuid")
	// @GenericGenerator(name = "system-uuid", strategy = "uuid")
	// @GeneratedValue(strategy = GenerationType.AUTO)
	// public String getId() {
	// return id;
	// }
	//
	// public void setId(String id) {
	// this.id = id;
	// }

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	// @Column(name = "_name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Transient
	public String getYouWifeName() {
		return youWifeName;
	}

	public void setYouWifeName(String youWifeName) {
		this.youWifeName = youWifeName;
	}

	@Temporal(TemporalType.DATE)
	// @Temporal(TemporalType.TIME)
	// @Temporal(TemporalType.TIMESTAMP)
	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	@Enumerated(EnumType.ORDINAL)
	// @Enumerated(EnumType.STRING)
	public ZhiCheng getZhiCheng() {
		return zhiCheng;
	}

	public void setZhiCheng(ZhiCheng zhiCheng) {
		this.zhiCheng = zhiCheng;
	}

}
